using System.Collections.Generic;

namespace IQIGame.Onigao.GamePlay
{
    public class DynParamProcessHouse : DynParamProcessBase
    {
        public DynParamProcessHouse(LevelPlayRegionController regionCtrl) : base(regionCtrl)
        {
        }

        public override EntityDynamicParamType paramType => EntityDynamicParamType.House;

        public override bool isContainTriggerRect => true;

        public override bool ignoreTriggerHeight => true;

        public override void OnListParamEffectiveChanged(EntityDynamicParamType paramType, IReadOnlyList<BaseEntityDynamicParam> paramValueList, IReadOnlyList<LevelPlayBaseEntity> entityList)
        {
            this.regionCtrl.cameraCtrl.SetCheckCameraOcclusion(paramValueList.Count > 0);
        }
    }
}
